<?php
namespace app\mini\controller\v1\shop;

use app\common\library\MemberVo;
use app\common\logic\AuditLogic;
use app\common\logic\CarLogic;
use app\common\logic\CustomerLogic;
use app\common\logic\MaintainLogic;
use app\mini\controller\Common;
use think\Request;

class Audit extends Common
{

    public $AuditLogic;

    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->AuditLogic = new AuditLogic();
    }

    /**
     * 订单详情
     * @return \think\response\Json
     */
    public function detail()
    {
        $res = $this->exception(function () {
            return $this->AuditLogic->detail(request()->param());
        });
        return $this->response($res);
    }


    /**
     * 更改车牌号
     * @return \think\response\Json
     */
    public function change_car_numbers()
    {
        $res = $this->exception(function () {
            return $this->AuditLogic->change_car_numbers(request()->param());
        });
        return $this->response($res);
    }


    /**
     * 订单确认
     * @return \think\response\Json
     */
    public function audit_confirm()
    {
        $res = $this->exception(function () {
            return $this->AuditLogic->audit_confirm(request()->param());
        });
        return $this->response($res);
    }


}